﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Article.Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="vDaohangtiaoHolder module">
        <div class="vDaohangtiao">
            <ul>
                <li class="first">
                    <a href="/index.aspx" title="首页">首页</a>
                </li>
                <li class="last"><asp:Label ID="lb_MName" runat="server"></asp:Label>
                </li>
            </ul>
        </div>
    </div>
    <Ent:HeadMenuWeb ID="HeadMenu1" runat="server">
    </Ent:HeadMenuWeb>
    <div id="contents">
        <div style="padding: 5px;">
            <%--显示有效通知的信息--%>
            搜索条件：<asp:DropDownList ID="s_Type" runat="server">
                <asp:ListItem Text="标题" Value="ATitle"></asp:ListItem>
                <asp:ListItem Text="内容" Value="AContent"></asp:ListItem>
            </asp:DropDownList>
            关键字：<asp:TextBox ID="s_Key" runat="server"></asp:TextBox>
            <asp:LinkButton ID="Bt_Search" runat="server" Text="检索" CssClass="easyui-linkbutton"
                plain="false" OnClick="Bt_Search_OnClick"></asp:LinkButton>
        </div>
        <div style="padding: 5px;">
            <asp:GridView ID="GridView1" runat="server" DataKeyNames="ArticleId" CssClass="GridViewStyle"
                AutoGenerateColumns="False" Width="100%" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging">
                <Columns>
                    <asp:TemplateField ItemStyle-Width="30">
                            <ItemTemplate>
                               <a href="Disp.aspx?Id=<%#Eval("ArticleId") %>&ModuleId=<%=ModuleId %>"> <img src="../../Manage/Common/img/arrow_142.gif" alt="" /></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="30" HeaderText="序号">
                            <ItemTemplate>
                                <%#Container.DataItemIndex+1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="标题">
                        <ItemTemplate>
                            <a href="Details.aspx?Id=<%#Eval("ArticleId") %>" target="_blank">
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("ATitle") %>'></asp:Label></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="False" HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="发布部门/单位">
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                        <ItemTemplate>
                            <%#Enterprise.Service.Department.DepartmentService.GetDepartMentName((int)Eval("ADepartment")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="发布人">
                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                        <ItemTemplate>
                            <%#Enterprise.Service.User.UserService.GetUserName((int)Eval("AUser")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="AReleaseTime" HeaderText="时间" DataFormatString="{0:yyyy-MM-dd}">
                        <ItemStyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>                    
                </Columns>
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
                <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
                    PreviousPageText="上一页" />
                <PagerStyle CssClass="GridViewPagerStyle" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
